<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.manage_banning}</h3>
        <ul class="tab1">
            <li><a href="__URL__/banUser"><span>{$Think.lang.ban_user}</span></a></li>
            <li class="current"><a href="__URL__/banIP"><span>{$Think.lang.ban_ip}</span></a></li>
        </ul>
    </div>
    <p class="tips">{$Think.lang.ban_ip_tips}</p>
    <form name="cpform" method="post" action="__URL__/banIP">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2 ">
        <tr>
            <th></th>
            <th>{$Think.lang.ip}</th>
            <th>{$Think.lang.author}</th>
            <th>{$Think.lang.start_date}</th>
            <th>{$Think.lang.expiry_date}</th>
        </tr>
        </thead>
        <tbody>
        <volist name="blacklist" id="vo">
        <tr>
            <td class="td25"><input type="checkbox" class="checkbox" name="delete[{$vo.id}]" value="{$vo.id}" /></td>
            <td>{$vo.ip}</td>
            <td><a href="{$vo.author_id|format_user_url=$vo['author_name']}" target="_blank">{$vo.author_name}</td>
            <td>{$vo.create_time|date='Y-m-d',###}</td>
            <td><input type="text" class="txt" name="expiration[{$vo.id}]" value="{$vo.expire_time|date='Y-m-d',###}" /></td>
        </tr>
        </volist>
        <tr>
            <td>{$Think.lang.add}:</td>
            <td class="td28" colspan="2">
                <input type="text" class="txt"  name="ip[]" maxlength="3" size="3" value="" />.
                <input type="text" class="txt"  name="ip[]" maxlength="3" size="3" value="" />.
                <input type="text" class="txt"  name="ip[]" maxlength="3" size="3" value="" />.
                <input type="text" class="txt"  name="ip[]" maxlength="3" size="3" value="" />
            </td>
            <td class="td28">{$Think.lang.expiry_date}: <input type="text" class="txt" name="new_expiration" value="30" /> {$Think.lang.day}</td>
        </tr>
        <tr class="nobg">
            <td class="td25"><input type="checkbox" name="chkall" id="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'delete')" /><label for="chkall">{$Think.lang.delete}?</label></td>
            <td colspan="15">
                <div class="cuspages right"><div class="pages">{$pagination}</div></div>
                <div class="fixsel"><input type="submit" class="btn" name="modsubmit" value="{$Think.lang.submit}" /></div>
            </td>
        </tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
